package com.ljh.myaiagent.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "forbidden-words")
@Data
public class ForbiddenWordConfig {
    /**
     * 违禁词列表
     */
    private List<String> words = Arrays.asList(
            "暴力", "色情", "赌博", "毒品", "自杀", "自残", "仇恨", "歧视",
            "政治敏感", "违法", "犯罪", "恐怖主义", "极端主义",
            "fuck", "shit", "damn", "bitch", "asshole"
    );

    /**
     * 违禁词检测的提示信息
     */
    private String message = "抱歉，您的输入包含不当内容，请重新输入。我们致力于提供健康、积极的恋爱咨询服务。";

    /**
     * 是否启用违禁词检测
     */
    private boolean enabled = true;
}
